import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 机构管理
 */
const version: AppRouteModule = {
  path: '/version',
  name: 'Version',
  component: LAYOUT,
  redirect: '/version/versionList',
  meta: {
    orderNo: 11,
    icon: 'carbon:version',
    title: '发版管理',
  },
  children: [
    {
      path: 'versionList',
      name: 'VersionList',
      component: () => import('@/views/version/versionList/index.vue'),
      meta: {
        title: '发版列表',
      },
    },
    {
      path: 'versionRecord',
      name: 'VersionRecord',
      component: () => import('@/views/version/versionRecord/index.vue'),
      meta: {
        title: '发版记录',
      },
    },
    {
      path: 'draft',
      name: 'Draft',
      component: () => import('@/views/version/draft/index.vue'),
      meta: {
        title: '草稿箱',
      },
    },
    {
      path: 'normTemplate',
      name: 'NormTemplate',
      component: () => import('@/views/version/normTemplate/index.vue'),
      meta: {
        title: '标准模板库',
      },
    },
    {
      path: 'plainTemplate',
      name: 'PlainTemplate',
      component: () => import('@/views/version/plainTemplate/index.vue'),
      meta: {
        title: '普通模板库',
      },
    },
  ],
};

export default version;
